using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Org.Loon.Framework.Xna.Game.Action.Scripting
{
    public class JumpFunction : Function {
	
    private string script;

    public JumpFunction(string script) {
        this.script = script;
    }

    public override void Update(ScriptFactory engine, Stack<StackFrame> stack, Callback callback)
    {
        callback.Jump(script);
        engine.Jump(stack, script);
    }

    public string GetScript() {
        return script;
    }

}
}
